<div class="form">
<?php $form=$this->beginWidget('CActiveForm', array(
    'id'=>'changepassword-form',
    'enableClientValidation'=>true,
	'action'=>Yii::app()->createUrl('UserPrivatePage/UpdateEmail'),
 'clientOptions'=>array(
 'validateOnSubmit'=>true,
'enableAjaxValidation'=>true,
),
)); 

$this->menu=array(
	array('label'=>'Change Password', 'url'=>array('changePassword')),
	array('label'=>'Show User Info', 'url'=>array('showUserInfo')),
);
?>
	<p class="note">
		Fields with <span class="required">*</span> are required.
	</p>
	<?php echo $form->errorSummary($model); ?>
	<?php echo 'Email hien tai cua ban:'.$model->email?>
	<div class="row">
	<?php echo $form->labelEx($model,'new_email'); ?>
	<?php echo $form->textField($model,'new_email'); ?>
	<?php echo $form->error($model,'new_email'); ?>
	</div>
	<div class="row buttons">
	<?php echo CHtml::submitButton('Change Email'); ?>
	</div>

	<?php $this->endWidget(); ?>
</div>
<!-- form -->
